package org.chispa.api.domain;

import org.chispa.api.util.BinningNumber;

public interface DomainRetriever {
	
	public void registerNamespace(String ns,String prefix);
	
	public void registerNamespace(String fullname);
	
	public BinningNumber createNumber(String id,Double number);
	
	public BinningNumber createNumberForNamespace(String ns,Double number);
	
	public BinningNumber createNumberForNamespace(String ns,Long number);

	public BinningNumber createDefaultNumber(String id);
	
	public BinningNumber createDefaultNumberForNamespace(String ns);
	
	public BinningNumber createDefaultLongNumberForNamespace(String ns);
	
	public BinningNumber createNumber(String id,Long number);
	
	/**
	 * 
	 * @deprecated testing only
	 * @param data
	 */
	public void addData(DomainParameter data);

	void setDomainListener(DomainCryptoListener listener);
	

}
